import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const Home = () => import('views/home/home')
const Classify = () => import('views/classify/classify')
const Planet = () => import('views/planet/planet')
const ShopCart = () => import('views/shop-cart/shop-cart')
const Mine = () => import('views/mine/mine')


const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home,
    children: []
  },
  {
    path: '/classify',
    component: Classify,
    children: []
  },
  {
    path: '/planet',
    component: Planet,
    children: []
  },
  {
    path: '/shop-cart',
    component: ShopCart,
    children: []
  },
  {
    path: '/mine',
    component: Mine
  }
]

const router = new VueRouter({
  routes
})

export default router
